/*
 * @Description: 节点权限相关
 */
import globalData from '@/plugins/data';
import globalMethods from '@/plugins/methods';

export default ({ service, request, tools }) => ({
    /**
     * @description: 获取节点权限
     */
    summaryNodePermission(params) {
        return request({
            url: `/new/deal/nodePermission/${ globalData.affairId}`,
            params
        });
    },
    /**
     * @description: 获取人员信息，目前加签等工作流用
     * @param {String} id 人员id
     * @return {*}
     */
    // summaryGetSignPeopleInfo(id) {
    //     return request({
    //         url: `${globalMethods.getLocationOrigin()}${globalData.ctxPath}/rest/worklfowcomponent/permission/operation/${id}?option.n_a_s=1`,
    //     });
    // },
    /**
     * @description: 获取人员信息，目前加签等工作流用
     * @param {String} id 人员id
     * @return {*}
     */
    summaryGetSignPeopleInfo(id) {
        return request({
            url: `/new/deal/permissionOperation/${id}`,
        });
    },
});
